Skip to content

fix: align compact ComputerUse mode guidance with foreground policy - #4054

Open
yutianjiang39 wants to merge 1 commit into
openBitFun:mainfrom
yutianjiang39:contrib/issue-4023
Open

yutianjiang39 wants to merge 1 commit into
openBitFun:mainfrom
yutianjiang39:contrib/issue-4023

Conversation

@yutianjiang39

Copy link
Copy Markdown

Summary

Update the compact mode description to match action and the full schema. Background remains the default. For a requested GUI task, foreground is available when background input is unsupported or verified ineffective, unless the user asked for background-only operation or no disruption.

Fixes #4023

Type and Areas

Bug fix · Rust core / agent runtime

Motivation / Impact

If typing into a background window had no effect, action allowed a switch to foreground, but mode said a separate takeover request was necessary. The visual and text-only schemas now give the same guidance without changing runtime permissions or input dispatch.

Verification

  • cargo test --locked --offline -p openbitfun-core --no-default-features --features agent-runtime,git,tools-computer-use --test computer_use_schema — the regression test failed on the baseline because mode still said “Foreground only for a user-requested takeover.” It passed after the fix, checking properties.mode.description in both compact schemas.
  • cargo test --locked --offline -p openbitfun-core --no-default-features --features agent-runtime,git,tools-computer-use --lib computer_use_tool::tests — 84 passed, including compact schema size, legacy call compatibility, and host admission checks.

Reviewer Notes

The tests inspect the published schemas and use simulated hosts. They do not exercise live desktop input or a remote session.

Checklist

  • Changes are limited to the parameter description and its regression test and test target.
  • Relevant verification is recorded above.
  • The affected schema text is updated; no UI or locale strings changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: computer_use compact schema mode description still says foreground is "only for a user-requested takeover"

1 participant